package org.despair2D.ui.puppet 
{
	import flash.geom.Point;
	import org.despair2D.ui.core.ComponentProxy;
	import org.despair2D.ui.Fusion;
	import org.despair2D.ui.DespairUI;
	
	import org.despair2D.core.ns_despair;
	use namespace ns_despair;

	
public class PuppetProxy extends ComponentProxy implements IPuppet
{
	
	
	final public function get fusion() : Fusion
	{
		return (view as PuppetCompBase).fusion
	}
	
	
	final override public function get hovered() : Boolean
	{
		return Boolean(DespairUI.overPuppet == this);
	}
	
	
	final override public function get pressed() : Boolean
	{
		return Boolean(DespairUI.pressedPuppet == this);;
	}
	
	
	final override public function kill() : void
	{
		fusion.m_fusionComp.removePuppet(this);
		super.kill();
	}

}

}